<div class="right_side_operate_area">
	<div class="right_side_title left">
    	<h2><?php echo $html->link($pname,"/projects/showinfo/".$pid)?></h2>
    </div>
     <?php if($form->value('Followinfo.id')){ ?>
      <div class="right back_btn"><?php echo $html->link("取消编辑","/projects/followinfos/")?></div>
      <?php }else{ ?>
    <div class="right back_btn"><?php echo $html->link("取消添加","/projects/followinfos/")?></div>
    <?php } ?>
    <div class='clear'></div>
</div>
<div class="right_side_scollbar">
	<div class="detail_info_panel">
		<?php 
		echo $form->create('projects', array('action' => 'editfollowinfo','type'=> 'post','id' => 'editform','name' => 'form','onsubmit' => 'return addcheckinfo()') ); 
		echo $form->hidden('Followinfo.owner');
		?>
		<?php echo $form->hidden('Followinfo.id');?>
		<?php echo $form->hidden('Followinfo.pid',array("value"=>$pid));?>
		<div class="details_item_line">
			<div class="details_item">
			    <div class="form_left_title left"><?php __("FollowinfoCtime")?>：</div>
			    <div class="form_right_e_input form_date_picker left"><?php echo $form->text('Followinfo.ctime',array("maxlength"=>"10","style"=>"width:90px","onfocus"=>"WdatePicker()"));?></div>
			    <div id='timemessage' class="error_message"></div>
			</div>
			<div class="details_item">
			    <div class="form_left_title left" style="width:155px"><?php __("FollowinfoCvid")?>：</div>
			    <div class="form_right_e_input left"><?php echo $form->select('Followinfo.cvid',$active, null);?></div>
			    <div id='cvidmessage' class="error_message"></div>
			</div>
		</div>
		<div class="details_item_line">
			<div class="details_item">
			    <div class="form_left_title left" ><?php __("Myperson")?>：</div>
			    <div class="form_right_e_input left"><?php echo $form->text('Followinfo.myperson',array("style"=>"width:245px"));?></div>
			    <div id='mypersonmessage' class="error_message">请以逗号隔开</div>
			</div>
		</div>
		<div class="details_item_line">
			<div class="details_item">
			    <div class="form_left_title left"><?php __("Yourperson")?>：</div>
			    <div class="form_right_e_input left"><?php echo $form->text('Followinfo.yourperson',array("style"=>"width:245px"));?></div>
			    <div id='yourpersonmessage' class="error_message">请以逗号隔开</div>
			</div>
		</div>
		<div class="details_item_line">
			<div class="details_item">
			    <div class="form_left_title left"><?php __("Pcontent")?>：</div>
			    <div class="form_right_e_input left"><?php echo $form->textarea('Followinfo.content');?></div>
			</div>
			<div class="details_item">
			    <div class="form_left_title left"><?php __("Premark")?>：</div>
			    <div class="form_right_e_input left"><?php echo $form->textarea('Followinfo.remark');?></div>
			</div>
		</div>
		 <div class="details_item_line">
			<div class="details_item">
				<div class="form_left_title left"></div>
		        <div class="form_add_submit left">
		        	<?php echo $form->submit(__('Save',true), array("id"=>"addactive","name"=>"submit","class"=>"buttom","div"=>false));  ?>
		        </div>
			</div>
		</div>
	</div>
</div>
<script>
$("#FollowinfoCvid option:first").html('请选择类型');
$("#FollowinfoReportProcess option:first").html('请选择类型');

function addcheckinfo(){
	if($("#FollowinfoCtime").val().trim() == ''){
			$("#timemessage").html('请选择活动时间');
			return false;
		  }else{
		 	 $("#timemessage").html('');
		  }
	  if($("#FollowinfoCvid").val().trim() == ''){
		$("#cvidmessage").html('请选择活动类型');
		return false;
	  }else{
	 	 $("#cvidmessage").html('');
	  }
	  if($("#FollowinfoMyperson").val().trim() == ''){
		$("#mypersonmessage").html('请填写本方人员');
		return false;
	  }else{
	 	 $("#mypersonmessage").html('请以逗号隔开');
	  }
	  if($("#FollowinfoYourperson").val().trim() == ''){
		$("#yourpersonmessage").html('请填写对方人员');
		return false;
	  }else{
	 	 $("#yourpersonmessage").html('请以逗号隔开');
	  }
}
</script>